<?php
require_once("library/curl.php");
require_once("resources/const.php");

function createCommentResponse ($content) {
	header("Location: " . $_POST['bad']);
}

if (isset($_POST["comment"])) {
	$curl = new curlHelper();
	$curl->addHandle($BACKEND_URL."/api/comment/create.php","createCommentResponse",
	array("postid"=>$_POST["postid"], "content"=>$_POST["content"]), true);
	$curl->exec();
}




?>